package org.lex.utils.tree;

import java.io.File;
import java.util.Iterator;

import org.lex.io.filesystem.FileNode;


public class FileSystemBFSTest {
	public static void main(String[] args) {
		bfs("E:\\Projects\\Java\\Commons\\src\\lex\\explorer");
	}

	static void bfs(String dir) {
		Iterator<File> bfs = new BFS<File>(new FileNode(new File(dir)));
		while (bfs.hasNext()) {
			File f = bfs.next();
			System.out.println(f);
		}
	}
}
